﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsTaskMeasureItemTemplate")]
    public partial class MsTaskMeasureItemTemplate
    {
        public MsTaskMeasureItemTemplate()
        {
        }

        /// <summary>
        /// 模板Id
        /// </summary>
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid MsTaskMeasureItemTemplateId { get; set; }

        /// <summary>
        /// 任务Id
        /// </summary>
        [Required]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid TaskId { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        [Required]
        [Column(TypeName = "int8")]
        public int SeqNo { get; set; }

        /// <summary>
        /// 测量项Id
        /// </summary>
        [Column(TypeName = "varchar(500)")]
        public string Id { get; set; }

        /// <summary>
        /// 测量项名称
        /// </summary>
        [Column(TypeName = "varchar(40)")]
        public string Title { get; set; }

        /// <summary>
        /// 测量项代码
        /// </summary>
        [Column(TypeName = "varchar(40)")]
        public string Code { get; set; }

        /// <summary>
        /// 设计值单位
        /// </summary>
        [Column(TypeName = "varchar(6)")]
        public string Unit { get; set; }

        /// <summary>
        /// 设计值
        /// </summary>
        [Column(TypeName = "text")]
        public string DesignValues { get; set; }

        /// <summary>
        /// 标准值
        /// </summary>
        [Column(TypeName = "text")]
        public string StandardValues { get; set; }

        /// <summary>
        /// 预警值
        /// </summary>
        public decimal WarningValue { get; set; }

        /// <summary>
        /// 人工测量项：0，机器测量项：1
        /// </summary>
        public int Type { get; set; }

        ///// <summary>
        ///// 创建者
        ///// </summary>
        //[Column(TypeName = "uuid")]
        //public Guid CreatedBy { get; set; }

        ///// <summary>
        ///// 创建日
        ///// </summary>
        //[Column(TypeName = "timestamp")]
        //public DateTime CreatedDate { get; set; }
    }
}